package be.bonamis.umpire.domain.history;

import java.io.Serializable;

public class UGCRId implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8730393120196628878L;
	private long umpireId;
	private long gameId;
	private long clubId;
	private long reportId;

	public long getUmpireId() {
		return umpireId;
	}

	public void setUmpireId(long umpireId) {
		this.umpireId = umpireId;
	}

	public long getGameId() {
		return gameId;
	}

	public void setGameId(long gameId) {
		this.gameId = gameId;
	}

	public long getClubId() {
		return clubId;
	}

	public void setClubId(long clubId) {
		this.clubId = clubId;
	}

	public long getReportId() {
		return reportId;
	}

	public void setReportId(long reportId) {
		this.reportId = reportId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (int) (clubId ^ (clubId >>> 32));
		result = prime * result + (int) (gameId ^ (gameId >>> 32));
		result = prime * result + (int) (reportId ^ (reportId >>> 32));
		result = prime * result + (int) (umpireId ^ (umpireId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UGCRId other = (UGCRId) obj;
		if (clubId != other.clubId)
			return false;
		if (gameId != other.gameId)
			return false;
		if (reportId != other.reportId)
			return false;
		if (umpireId != other.umpireId)
			return false;
		return true;
	}

}
